package com.me.batm.models;


import com.badlogic.gdx.math.Vector2;

public abstract class GameEntity extends LivingGameObject {	
	protected boolean collided;
	public boolean render;
	public float velocity;
	public int direction;
	public int [] xmult = {-1, 1, 0, 0};
	public int [] ymult = {0, 0, -1, 1};
	public GameEntity(int direction, float x, float y, float width, float height,Vector2 speed, float velocity) {
		super(x, y, width,height,speed);
		collided = false;
		render = true;
		this.direction = direction;
		this.velocity = velocity;
	}
	

	public abstract void applyEffectOverPlayer(Player player);
	public abstract void removeEffectOverPlayer(Player player);
	public void move(float delta) {
		this.shape.x += this.xmult[direction] * delta * velocity;
		this.shape.y += this.ymult[direction] * delta * velocity;
	}
	public abstract boolean isColliding(GameObject object);
	
}
